﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Classic.Master" Inherits="ModelViewPage<WorkerUserCreateFormModel>" %>

<%@ Import Namespace="Revis.VClinicNet.UI.Internal.Mvc.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Nowy użytkownik
    </h2>
    <% Html.BeginForm(); %>
    <fieldset class="form">
        <%=Html.IfValidationFail() %>
        <div>
            <%=this.TextBox(w=>w.FirstName).Label("Imię:") %>
            <%=this.ValidationMessage(w => w.FirstName)%>
        </div>
        <div>
            <%=this.TextBox(w => w.Surname).Label("Nazwisko:")%>
            <%=this.ValidationMessage(w => w.Surname)%>
        </div>
        <div>
            <%=this.TextBox(w => w.Login).Label("Login:")%>
            <%=this.ValidationMessage(w => w.Login)%>
        </div>
        <div>
            <%=this.Password(w => w.Password).Label("Hasło:")%>
            <%=this.ValidationMessage(w => w.Password)%>
        </div>
        <div>
            <%=this.Password(w => w.RepeatedPassword).Label("Powtórz hasło:")%>
            <%=this.ValidationMessage(w => w.RepeatedPassword)%>
        </div>
        <div>
            <%=this.CheckBox(w => w.IsActive).Label("Czy aktywny?")%>
        </div>
        <div>
            <%=this.Select("Role").Options(Model.Roles).Label("Typ użytkownika:") %>
        </div>
        <div class="form-buttons">
            <%=this.SubmitButton("Ok") %>
            <%=this.ResetButton("Reset") %>
        </div>
    </fieldset>
    <% Html.EndForm(); %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
